Skip to content

[6.2] Diagnostic message: suppress printing "requires LifetimeDependence"#81686

Merged
atrick merged 1 commit intoswiftlang:release/6.2from
atrick:62-lifedep-unprint-feature
May 22, 2025
Merged

[6.2] Diagnostic message: suppress printing "requires LifetimeDependence"#81686
atrick merged 1 commit intoswiftlang:release/6.2from
atrick:62-lifedep-unprint-feature

Conversation

@atrick
Copy link
Copy Markdown
Contributor

@atrick atrick commented May 21, 2025

Adopters of the new Span and MutableSpan types should not encounter information
about an experimental feature when they attempt to use these types in
unsupported ways, such as simply returning them from a function.

Fixes rdar://151788740 (Diagnostic message: suppress printing "requires
'-enable-experimental-feature LifetimeDependence'")

(cherry picked from commit 50a69bcee3dff4afeba6eebe510584f43faf6c75)

--- CCC ---

Explanation: Adopters of the new Span and MutableSpan types should not
encounter information about an experimental feature when they attempt
to use these types in unsupported ways, such as simply returning one
from a function.

Scope: This change only affects the text of a diagnostic message that
is new in this release. This message will only be seen by adopters of
the new Span and MutableSpan types.

Radar/SR Issue: rdar://151788740 (Diagnostic message: suppress
printing "requires '-enable-experimental-feature LifetimeDependence'")

main PR: #81685

Risk: None

Testing: Updated several unit tests for this diagnostic.

Reviewer: Joe Groff

@atrick atrick requested a review from a team as a code owner May 21, 2025 18:44
@atrick atrick added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels May 21, 2025
@atrick atrick requested review from hborla, jckarter, meg-gupta and tbkka May 21, 2025 18:45
@atrick
Copy link
Copy Markdown
Contributor Author

atrick commented May 21, 2025

@swift-ci test

@atrick atrick requested a review from natecook1000 May 21, 2025 19:40
@atrick atrick enabled auto-merge May 21, 2025 23:48
Adopters of the new Span and MutableSpan types should not encounter information
about an experimental feature when they attempt to use these types in
unsupported ways, such as simply returning them from a function.

Fixes rdar://151788740 (Diagnostic message: suppress printing "requires
'-enable-experimental-feature LifetimeDependence'")

(cherry picked from commit 6cc1a8d)
@atrick atrick force-pushed the 62-lifedep-unprint-feature branch from f890a8d to f0ec734 Compare May 22, 2025 06:01
@atrick
Copy link
Copy Markdown
Contributor Author

atrick commented May 22, 2025

@swift-ci test

@atrick atrick merged commit 641cf01 into swiftlang:release/6.2 May 22, 2025
5 checks passed
@atrick atrick deleted the 62-lifedep-unprint-feature branch May 22, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 6.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants